package com.example.elderlycare.controller.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

public class CheckRecordRequestBody {
    @Data
    public static class AddCheckRecord {
        @NotNull
        private Integer elderId;
        @NotNull
        @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date startTime;
        @NotNull
        private Integer nurseId;
        @NotNull
        private Integer inStatusId;
        @NotNull
        private Integer bedId;
    }

    @Data
    public static class UpdateCheckRecord {
        @NotNull
        private Integer id;
        private Integer elderId;
        @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date startTime;
        private Integer nurseId;
        private Integer inStatusId;
        private Integer bedId;
    }
}
